package br.com.abril.booking;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ExecutiveBookingService {

	@Autowired
	private ExecutiveBookingRepository repository;
	
	public ExecutiveBookingRepository getAll() {
		return this.repository;
	}

	@Transactional
	public void save (List<ExecutiveBooking> executives) {
		this.repository.save(executives);
	}
	
}
